<?php

return
    [
        'menuPid'=>44,
        'table'=>'virtual_order',// 基于此表构建 代码
        'prefix'=>'primary',
        'orderByDesc'=>'id',
        'modelName'=>'VirtualOrder',//模块名
        'modelShowName'=>'虚拟订单',
        //字段处理
        "fields"=>
            [
                ['field'=>'customer_id','type'=>'int','title'=>'长ID'],
                ['field'=>'goods_id','type'=>'int','title'=>'内购表商品ID'],
                ['field'=>'server_id','type'=>'int','title'=>'服务器ID'],
                ['field'=>'role_id','type'=>'int','title'=>'游戏角色ID'],
                ['field'=>'number','type'=>'int','title'=>'数量'],
                ['field'=>'push_status','type'=>'radio','title'=>'状态',"values"=>[
                    ['value'=>-1,'title'=>'推送失败'],['value'=>0,'title'=>'待推送'],['value'=>1,'title'=>'推送成功']
                ]
                    ,'default'=>0],
                ['field'=>'comment','type'=>'varchar','title'=>'备注'],
            ],
        'functions'=> //功能
            [
                ['name'=>'model','path'=>'app/Models'],
                ['name'=>'dto','path'=>'app/DTOS/Admin','dtoList'=>['insertDTO','updateDTO','searchDTO']],
                ['name'=>'service','path'=>'app/Services','methods'=>['paginate','insert','updateById','deleteById','deleteByIds','getById']],
                ['name'=>'controller','path'=>'app/Http/Controllers/Admin','methods'=>['import','export','paginate','insert','update','delete','detail']],
                ['name'=>'layuiAdminPage',
                    'output'=>'/code/xm2-admin/page/virtualOrder',
                    'pages'=>
                        [
                            ['page'=>'form','functions'=>[]],
                            ['page'=>'index','functions'=>['import','export','insert','update','delete','batchDelete']],
                        ]
                ],
               // ['name'=>'route'],
               // ['name'=>'menu','functions'=>['insert','update','delete','paginate','detail']],
            ],
    ];

